package com.gjw.designpattern.bulider;

/**
 * 具体建造者
 */
public class DellBuilder extends Builder{
    private Computer computer = new Computer();
    @Override
    public void buildCpu() {
        computer.setCpu(new Cpu("Dell","dc-1"));
    }

    @Override
    public void buildMainBoard() {
        computer.setMainBoard(new MainBoard("Dell","dm-1"));
    }

    @Override
    public void buildRAM() {
        computer.setRam(new RAM("Dell","dr-1"));
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
